/**
 * @export is weixin
 * @return {*}
 */
export function isWeixin () {
  return (/MicroMessenger/i).test(window.navigator.userAgent)
}

/**
 * @export is pc
 * @return {*} pc
 */
export function isPC () {
  const userAgentInfo = navigator.userAgent
  const Agents = ['Android', 'iPhone',
    'SymbianOS', 'Windows Phone',
    'iPad', 'iPod']
  let flag = true
  for (let v = 0; v < Agents.length; v++) {
    if (userAgentInfo.indexOf(Agents[v]) > 0) {
      flag = false
      break
    }
  }
  return flag
}
